package com.pgytesting.secondhandcar.dao;

import com.pgytesting.secondhandcar.model.SupplementaryBasicInformation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;

/**
 * 补充基本信息(SupplementaryBasicInformation)表数据库访问层
 *
 * @author makejava
 * @since 2019-08-12 18:55:58
 */
@Mapper
public interface SupplementaryBasicInformationDao {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    SupplementaryBasicInformation queryById(String id);

    /**
     * 查询指定行数据
     *
     * @param offset 查询起始位置
     * @param limit 查询条数
     * @return 对象列表
     */
    List<SupplementaryBasicInformation> queryAllByLimit(@Param("offset") int offset, @Param("limit") int limit);


    /**
     * 通过实体作为筛选条件查询
     *
     * @param supplementaryBasicInformation 实例对象
     * @return 对象列表
     */
    List<SupplementaryBasicInformation> queryAll(SupplementaryBasicInformation supplementaryBasicInformation);

    /**
     * 新增数据
     *
     * @param supplementaryBasicInformation 实例对象
     * @return 影响行数
     */
    int insert(SupplementaryBasicInformation supplementaryBasicInformation);

    /**
     * 修改数据
     *
     * @param supplementaryBasicInformation 实例对象
     * @return 影响行数
     */
    int update(SupplementaryBasicInformation supplementaryBasicInformation);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 影响行数
     */
    int deleteById(String id);
    
    /**
     * 查询用户补充的基本信息
     * @param supplementaryBasicInformation
     * @return
     */
    Map<String,Object> querySupplementaryInformation(SupplementaryBasicInformation supplementaryBasicInformation);
}